<template>
  <div class="stats-container">
    <h1>数据分析</h1>

    <!-- 价格预测模块 - 占据整行宽度 -->
    <section class="full-width-module">
      <PricePrediction />
    </section>

    <!-- 功能待开发模块 - 并排各占50%宽度 -->
    <section class="dual-modules">
      <div class="half-module">
        <ComingSoon1 />
      </div>
      <div class="half-module">
        <ComingSoon2 />
      </div>
    </section>
  </div>
</template>

<script>
import PricePrediction from '@/components/PricePrediction.vue';
import ComingSoon1 from '@/components/ComingSoon1.vue';
import ComingSoon2 from '@/components/ComingSoon2.vue';

export default {
  name: 'Stats',
  components: {
    PricePrediction,
    ComingSoon1,
    ComingSoon2
  }
};
</script>

<style scoped>
.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.stats-container h1 {
  text-align: center;
  color: #4CAF50;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  font-weight: 700;
}

.full-width-module {
  width: 100%;
  margin-bottom: 3rem;
}

.dual-modules {
  display: flex;
  gap: 2rem;
}

.half-module {
  flex: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .stats-container {
    padding: 1rem;
  }

  .stats-container h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .dual-modules {
    flex-direction: column;
    gap: 1.5rem;
  }
}
</style>